module.exports = app => {
  const { STRING } = app.Sequelize

  const Media = app.model.define(
    'medias',
    {
      id: {
        type: STRING(255),
        primaryKey: true
      },
      url: {
        type: STRING(32),
        allowNull: false
      },
      filename: {
        type: STRING(60)
      }
    }
  )

  return Media
}
